package net.aiion.weave.impl.ui;

import net.aiion.weave.spi.cards.annotations.Property;
import net.aiion.weave.spi.naming.annotations.Named;
import net.aiion.weave.spi.naming.annotations.NotScoped;
import net.aiion.weave.spi.ui.Label;
import net.aiion.weave.spi.ui.annotations.Binds;
import net.aiion.weave.spi.ui.annotations.BindsContent;

@NotScoped
@Named("label")
public class LabelImpl extends AbstractComponent implements Label
{
    @Property
    @Binds("value")
    @BindsContent
    private String value;

    public LabelImpl() {
    }

    @Override
    public void setValue(final String aValue) {
        value = aValue;
    }

    @Override
    public String getValue() {
        return value;
    }
}
